
import { EnumStorageKey} from '@/enum';



export const getLocalKey = (key : keyof typeof EnumStorageKey) => {
  return window.localStorage.getItem(EnumStorageKey[key || 'theme-color']);
};

export const setLocalKey = (data: any, key : keyof typeof EnumStorageKey ) => {

  window.localStorage.setItem(EnumStorageKey[key || 'theme-color'], data);
};


// eslint-disable-next-line no-unused-vars
export const themeColorList: Record<string, (color: string)=> void> = {
  elColorPrimary: (color: string) => color,
  elColorPrimaryLight3: (color:string) => `${color}C0`,
  elColorPrimaryLight5: (color:string) => `${color}A0`,
  elColorPrimaryDark2: (color: string) => `${color}A0`
};
